﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ATMSystem_G5_HaUI.UC4
{
    public partial class ViewHistoryControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void on_tick(object sender, EventArgs e)
        {
            PanelWaitViewHistory.Visible = false;

            Response.Redirect("~/UC4/GridView.aspx");
        }

        protected void btn1_Click(object sender, EventArgs e)
        {
            Session["chooseitem"] = ("7 day");
            load_panel();
        }

        protected void btn2_Click(object sender, EventArgs e)
        {
            Session["chooseitem"] = ("30 day");
            load_panel();
        }

        protected void btn3_Click(object sender, EventArgs e)
        {
            Session["chooseitem"] = ("120 day");
            load_panel();
        }

        protected void btn4_Click(object sender, EventArgs e)
        {
            Session["chooseitem"] = ("180 day");
            load_panel();
        }

        protected void btn5_Click(object sender, EventArgs e)
        {
            Session["chooseitem"] = ("360 day");
            load_panel();
        }

        protected void btn6_Click(object sender, EventArgs e)
        {
            Session["chooseitem"] = ("720 day");
            load_panel();
        }
        public void load_panel()
        {
            PanelViewHistory.Visible = false;
            PanelWaitViewHistory.Visible = true;
        }
    }
}